home *** CD-ROM | disk | FTP | other *** search
/ Programmers Heaven 2 / Programmers Heaven 2.iso / files / graphics / library / wgt51_r2.zip / WGT5 / DOC / TROUBLE.TXT < prev    next >
Text File  |  1996-08-02  |  4KB  |  93 lines

  1. WGT 5.1 Troubleshooting Guide
  2. -----------------------------
  3.  
  4.  
  5. Problem 1:      When I set the palette with wsetpalette, all the colors
  6.                 remain black.
  7.  
  8. Solution:       You should have set the palette beforehand with wsetrgb or
  9.                 wloadpalette.  If you have loaded the palette, make sure
  10.                 the file is in the correct directory.
  11.  
  12. ----------------------------------------------------------------------------
  13.  
  14. Problem 2:      When I use wfade_in, wfade_out or other palette functions,
  15.                 "snow" appears at the top of the screen.
  16.  
  17. Solution:       This screen disturbance occurs when you change many palette
  18.                 colors at once on poor video cards.  Try settings fewer
  19.                 palette colors at once with wsetpalette, or use a larger
  20.                 delay if you are fading the colors.
  21.  
  22. ----------------------------------------------------------------------------
  23.  
  24. Problem 3:      When I use wfade_in, wfade_out, or other palette functions,
  25.                 the palette never changes.
  26.  
  27. Solution:       Some palette routines require you to call wsetpalette to
  28.                 actually change the colors.  These kinds of functions
  29.                 just change the values in the palette array but do not
  30.                 tell the VGA card they have changed until you call
  31.                 wsetpalette.
  32.  
  33. ----------------------------------------------------------------------------
  34.  
  35. Problem 4:      When I load in a picture and a palette, the picture does not
  36.                 display on the screen.
  37.  
  38. Solution:       WGT's image functions load all images into a buffer, not
  39.                 onto the screen.  This means you will need to display the
  40.                 image on the screen using wputblock.
  41.  
  42. ----------------------------------------------------------------------------
  43.  
  44. Problem 5:      When I load in a picture and a palette, the palette is
  45.                 not correct.
  46.  
  47. Solution:       You must call wsetpalette to use the palette from the image.
  48.  
  49. ----------------------------------------------------------------------------
  50.  
  51. Problem 6:      I am using wputblock or another image display routine and
  52.                 all I see is a jumbled mess on the screen.  
  53.  
  54. Solution:       The image you tried to display was not loaded or allocated. 
  55.                 If you try do display a pointer which is not initialized
  56.                 it will display whatever is in memory at that point.
  57.  
  58. ----------------------------------------------------------------------------
  59.  
  60. Problem 7:      Some of the example files do not seem to work right, and
  61.                 I must use a control break to end.
  62.  
  63. Solution:       Many of the examples programs require a mouse to operate.
  64.                 Others require a certain keypress or mouse button to be
  65.                 hit before ending.  Make sure you read the introduction
  66.                 before each example to see what keys you can use.
  67.                 
  68. ----------------------------------------------------------------------------
  69.  
  70. Problem 8:      When using a SVGA program, only the top third of the screen
  71.                 is updated.
  72.  
  73. Solution:       You must run a VESA driver before using the program.     
  74.                 The problem lies in the bank switching code for you
  75.                 particular video card.  Without a VESA driver, WGT doesn't
  76.                 know how to switch to other banks of video memory and
  77.                 output is limited to the first 64k of the screen.
  78.                 Running a TSR such as univesa or uniVBE beforehand will
  79.                 fix this problem.
  80.  
  81. ----------------------------------------------------------------------------
  82.  
  83. Problem 9:      When using the mouse routines or within the Map Maker and
  84.                 Sprite Editor, the mouse cursor hotspot seems off, the
  85.                 cursor image is incorrect, or the mouse movements are
  86.                 jerky.
  87.  
  88. Solution:       The mouse driver you are using is not fully Microsoft 
  89.                 mouse compatible.  Cheaper mouse drivers do not define
  90.                 the default settings the same way and can cause various
  91.                 problems with mouse routines.
  92.  
  93.